<template>
  <el-container>
    <el-header>
      <div class="w">
        <el-row>
          <el-col :span="3">
            <div class="grid-content">
              <div class="logo">
                <img src="../assets/cnodejs_light.svg" alt="" />
              </div>
            </div>
          </el-col>
          <el-col :span="13">
            <div class="grid-content">
              <el-input placeholder="请输入内容" prefix-icon="el-icon-search"> </el-input>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-content">
              <ul class="right">
                <li v-for="(item, i) in aList" :key="i">
                  <a :href="item[0]">{{ item[1] }}</a>
                </li>
              </ul>
              <!--               <ul class="right">
                <li>
                  <a href="/">首页</a>
                </li>
                <li>
                  <a href="/getstart">新手入门</a>
                </li>
                <li>
                  <a href="/api">API</a>
                </li>
                <li>
                  <a href="/about">关于</a>
                </li>
                <li>
                  <a href="/signup">注册</a>
                </li>
                <li>
                  <a href="/signin">登录</a>
                </li>
              </ul> -->
            </div>
          </el-col>
        </el-row>
      </div>
    </el-header>
    <el-main>
      <router-view></router-view>
    </el-main>
    <el-footer>
      <div class="w">
        <div class="footer_main">
          <div class="links">
            <a href="javascript:;">RSS</a> |
            <a href="javascript:;">源码地址</a>
          </div>
          <div class="description">
            <p>CNode 社区为国内最专业的 Node.js 开源技术社区，致力于 Node.js 的技术研究。</p>
            <p>
              服务器搭建在
              <a href="javascript:;" target="_blank">
                <img src="../../public/images/digitalocean.png" title="digitalocean" alt="" width="92px" />
              </a>
              ，存储赞助商为
              <a href="javascript:;" target="_blank">
                <img src="../../public/images/qiniu.png" title="七牛云存储" alt="" width="115px" />
              </a>
            </p>
            <p>新手搭建 Node.js 服务器，推荐使用无需备案的 <a href="javascript:;">DigitalOcean(https://www.digitalocean.com/)</a></p>
          </div>
        </div>
      </div>
    </el-footer>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
      activeName: 'first',
      aList: [
        ['/', '首页'],
        ['/getstart', '新手入门'],
        ['/api', 'API'],
        ['/about', '关于'],
        ['/signup', '注册'],
        ['/signin', '登录']
      ]
    }
  },
  created() {},
  methods: {
    handleClick() {}
  }
}
</script>

<style lang="less" scoped>
.el-header {
  height: 50px !important;
  background-color: #444;
  .el-row {
    height: 40px;
    margin-top: 5px;
    .logo {
      width: 120px;
      height: 34px;
      padding: 3px 20px 3px 0;
      img {
        width: 128px;
        height: 28px;
      }
    }
    .el-input {
      height: 40px;
      border-radius: 50%;
    }
    .right {
      display: flex;
      justify-content: space-between;
      margin-top: 8px;
      a {
        color: #ccc;
        font-size: 13px;
      }
    }
  }
  .el-input {
    width: 233px;
    height: 26px;
  }
}
.el-footer {
  height: 200px;
  background-color: #fff;
  .footer_main {
    max-width: 1400px;
    min-width: 960px;
    margin: 0 auto;
    color: #e2e2e2;
    padding: 20px 0;
    font-size: 13px;
    .description {
      color: #ababab;
      img {
        vertical-align: bottom;
      }
      a {
        color: #08c;
      }
    }
  }
}
</style>
<style lang="less">
#content {
  width: 910px;
  float: left;
  .el-breadcrumb {
    height: 30px;
    line-height: 30px;
    padding: 5px 0 5px 15px;
    background-color: #f6f6f6;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
  }
  .markdown-text {
    a {
      color: #08c;
    }
    h2,
    h3,
    h4 {
      border-bottom: 1px solid #eee;
    }
  }
  .el-tabs__header {
    background-color: #f6f6f6;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
    .el-tabs__item {
      color: #80bd01;
    }
  }
  .el-tabs__content {
    background-color: #fff;
  }
}
.el-main {
  background-color: #e1e1e1;
  #sidebar {
    float: right;
    width: 290px;
    font-size: 13px;
    margin-bottom: 20px;
    .panel {
      background-color: #fff;
      margin-bottom: 13px;
      border-radius: 3px 3px 0 0;
    }
    .panel .header {
      padding: 10px;
      border-radius: 3px 3px 0 0;
      background-color: #f6f6f6;
      .col_fade {
        color: #444;
      }
    }
    .panel .inner {
      padding: 10px;
      border-radius: 0 0 3px 3px;
      .topic_title {
        font-size: 14px;
        line-height: 30px;
      }
      .loginbtn {
        background-color: #5bc0de;
        margin-top: 5px;
      }
      .friendship-community {
        li {
          margin-bottom: 10px;
          img {
            width: 150px;
          }
        }
      }
      ol li {
        line-height: 30px;
        color: gray;
      }
      .score {
        margin-right: 10px;
      }
      img {
        height: auto;
        max-width: 100%;
        vertical-align: middle;
        border: 0;
      }
    }
    .app_download {
      text-align: center;
    }
  }
}
.grid-content .el-input__inner {
  border-radius: 30px;
  height: 30px;
  margin-top: 5px;
  background-color: #888;
  border: 0;
}
</style>
